//package com.wad.config;
//
//import com.wad.interceptors.JWTInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author wad
// * @date 2022/11/11 11:29
// * @project JWT_DEMO2
// **/
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new JWTInterceptor()).
//                excludePathPatterns("/user/login").//排除登录接口
//                addPathPatterns("/user/test");
//    }
//}
